package com.cz.zslu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单评价管理
 * </p>
 *
 * @author 森森
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("zsl_order_evaluate")
@AllArgsConstructor
@NoArgsConstructor
public class ZslOrderEvaluate extends SuperEntity<ZslOrderEvaluate> {

    private static final long serialVersionUID = 1L;

    /**
     * 状态 0有效 1无效
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    private Integer state=0;
    /**
     * 评价内容
     */
    @ApiModelProperty("评价内容")
    private String content;
    /**
     * 评分等级 0.0-5.0
     */
    @ApiModelProperty("评分等级 0.0-5.0")
    private Double grade;
    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;
    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    @TableField("order_id")
    private Long orderId;
    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    @TableField("commodity_id")
    private Long commodityId;
    /**
     * 回复内容
     */
    @ApiModelProperty("回复内容")
    @TableField("reply_content")
    private String replyContent;

}
